//
//  UIView+Category.m
//  test
//
//  Created by yun on 2018/4/8.
//  Copyright © 2018年 yun. All rights reserved.
//

#import "UIView+Category.h"
#import <objc/runtime.h>

static const void * _Nonnull key = &key;

@implementation UIView (Category)

- (void)setCa_name:(NSString *)ca_name{
    objc_setAssociatedObject(self, key, ca_name, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (NSString *)ca_name{
   return objc_getAssociatedObject(self, key);
}

@end
